﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsForms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button_get_Click(object sender, EventArgs e)
        {
            
            getService.UserDetail abc = new getService.UserDetail();
            getService.UserDetailRow[] dt = abc.getUserDetail1();
            dataGridView1.DataSource = dt;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            getService.UserDetail abc = new getService.UserDetail();
            string name = txt_name.Text.ToString();
            string email = txt_email.Text.ToString();
            string s = abc.insertUser1(name, email);
            MessageBox.Show(s);
        }
    }
}
